const { SimpleLexer, tokenPrint } = require('./SimpleLexer')

const lexer = new SimpleLexer()

// const script1 = "int age = 45;"
// console.log('parse: ', script1)
// const token1 = lexer.tokenize(script1)
// tokenPrint(token1)

const script2 = "in age >= 45;"
console.log('parse: ', script2)
const token2 = lexer.tokenize(script2)
console.log(token2)
tokenPrint(token2)

const reader = lexer.genSimpleTokenReader('int age = 32')
console.log(reader.read())